projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba41a18
)
* Define `cl-satisfies-deftype' mapping predicate -> type
author
Andrea Corallo
<akrl@sdf.org>
Tue, 29 Dec 2020 10:39:26 +0000
(11:39 +0100)
committer
Andrea Corallo
<akrl@sdf.org>
Tue, 29 Dec 2020 13:47:16 +0000
(14:47 +0100)
* lisp/emacs-lisp/cl-macs.el (cl-satisfies-deftype): Define symbol
property as reverse of `cl-deftype-satisfies'.
lisp/emacs-lisp/cl-macs.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/cl-macs.el
b/lisp/emacs-lisp/cl-macs.el
index f4b22ffbea221574aa0108a97436e674b6e83dae..7dfcc288e6799fc9f85ca14620f81ab1c5f0aa38 100644
(file)
--- a/
lisp/emacs-lisp/cl-macs.el
+++ b/
lisp/emacs-lisp/cl-macs.el
@@
-3198,7
+3198,8
@@
Of course, we really can't know that for sure, so it's just a heuristic."
;; FIXME: Do we really want to consider this a type?
(integer-or-marker . integer-or-marker-p)
))
- (put type 'cl-deftype-satisfies pred))
+ (put type 'cl-deftype-satisfies pred)
+ (put pred 'cl-satisfies-deftype type))
;;;###autoload
(define-inline cl-typep (val type)